<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/static/css/index.css" rel="stylesheet">
<title>智慧通行管理系统</title>
</head>
<body onbeforeunload="window.location='/web/logout">
<header class="pa bgb">
	<div align="right"><p class="cf">欢迎<span th:text="${session.user.uName}"></span>登录系统！<a href="/web/logout"><button  onclick="getbytime();" type="button" class="creat-btn cf">退出登录</button></a></p>
	</div>
</header>
<div class="frame">
	<div class="frame-cont">
		<aside class="fl">
			<ul>
				<li id="equipmentManagement" class="now">
					<a href="/redirect/togetPageEquipments" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-2.png" alt="" /></span>
						<h5>设备管理</h5>
					</a>
				</li>
				<li  id="companyManagement">
					<a href="/redirect/togetPageCompany" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-1.png" alt="" /></span>
						<h5>单位管理</h5>
					</a>
				</li>
				<li >
					<a href="/redirect/togetAttendanceRecord" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-2.png" alt="" /></span>
						<h5>考勤统计</h5>
					</a>
				</li>
				<li id="togetAlltravelRecords">
					<a href="/redirect/togetAlltravelRecords" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-3.png" alt="" /></span>
						<h5>出入历史查询</h5>
					</a>
				</li>
				<li id="togetAllstrangerRecordsPage">
					<a href="/redirect/togetAllstrangerRecordsPage" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-3.png" alt="" /></span>
						<h5>陌生人抓拍查询</h5>
					</a>
				</li>
				<li>
					<a href="/redirect/toMyTravelRecord" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-3.png" alt="" /></span>
						<h5>我的通行记录</h5>
					</a>
				</li>
				<li>
					<a href="/web/getpersonalDetails" target="mainIframe">
						<span class="fl tc"><img src="/static/images/icon-5.png" alt="" /></span>
						<h5>个人信息修改</h5>
					</a>
				</li>
				
					
			</ul>
		</aside>
		<div class="iframe">
			<iframe id="mainIframe" name="mainIframe" src="/redirect/togetPageEquipments" width="100%" height="100%" border="0"></iframe>
		</div>
	</div>
</div>
<footer class="pa bgb">
	<p class="cf">Copyright ©2019 深圳易威胜科技有限公司 All Rights Reserved</p>
</footer>


<script src="/static/js/jquery.js" type="text/javascript"></script>
<script src="/static/js/common.js" type="text/javascript"></script>	
	<script type="text/javascript">
	$(function(){
		var uIdentity=[[${session.user.uIdentity}]];
		if(uIdentity==2){
			$("#equipmentManagement").remove();
		}else if(uIdentity==3){
			$("#equipmentManagement").remove();
			$("#companyManagement").remove();
			$("#togetAlltravelRecords").remove();
			$("#togetAllstrangerRecordsPage").remove();
			$("#dataQuery").remove();
		}
		
		
	});
	</script>
</body>
</html>